 {
        
        var o = require("../UISoundManager.js"), i = require("../UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                startQuick: {
                    default: null,
                    type: cc.Node
                },
                continueQuick: {
                    default: null,
                    type: cc.Node
                },
                totalTip: {
                    default: null,
                    type: cc.Label
                },
                _winCount: 0,
                _reliveNeedDiamond: 0,
                _leaveTime: 0
            },
            init: function () {
            },
            onLoad: function () {
                Global.notificationCenter.on(Global.eventName.MSG_RED_SUCC_COUNT, this.getData.bind(this), this);
                var e = Global.eventName.CMD_RED_SUCC_COUNT;
                Global.msgHandler.requestRedSuccessCount(e);
            },
            getData: function (e) {
                this.totalTip.string = "第" + (e.wx_h5_win_count + 1) + "关", Global.utils.searchComp(this.node, "content", cc.Label).string = "平分" + e.totalSuccMoney + "元奖励",
                    Global.utils.searchComp(this.node, "completeTip", cc.Label).string = "本期已有" + e.succCount + "人次通关",
                    this._leaveTime = e.leaveTime, e.wx_h5_win_count > 0 ? (console.log("continueVictoryPanel 显示继续闯关"),
                    this.continueQuick.active = !0) : (console.log("continueVictoryPanel 显示开始闯关"), this.startQuick.active = !0),
                    this._winCount = e.wx_h5_win_count, this._reliveNeedDiamond = e.wx_h5_relive_diamond;
            },
            onBtnQuick: function (e) {
                e && this.onBtnReset();
                var t = Global.config.playModel.XUELIU, n = Global.config.roomId;
                Global.msgHandler.requestQuickStart(t, n);
            },
            onBtnContinueQuick: function () {
                var e = this;
                if (e._reliveNeedDiamond > 0) {
                    var t = {
                        text: "使用钻石x" + e._reliveNeedDiamond + "继续挑战第" + (e._winCount + 1) + "关",
                        confirmText: "确定",
                        cancelText: "重新闯关",
                        confirmCallback: function () {
                            console.log(" confirmCallback ");
                            var t = Global.eventName.CMD_DIAMOND_RELIVE, n = e._winCount, o = e._reliveNeedDiamond;
                            Global.msgHandler.requestRedSuccessCount(t, n, o);
                        },
                        cancelCallback: function () {
                            console.log(" cancelCallback "), e.onBtnQuick(!0);
                        }
                    };
                    Global.UIPopupManager.alert(t);
                } else e.onBtnQuick();
            },
            onBtnReset: function () {
                var e = Global.eventName.CMD_RESTART_QUICK;
                Global.msgHandler.requestRedSuccessCount(e);
            },
            OnPanelClose: function () {
                o.playEffect("select"), this.closePanel();
            },
            update: function (e) {
                this._leaveTime > 0 && (this._leaveTime -= e);
                var t = parseInt(this._leaveTime), n = 0, o = 0;
                t > 60 && (n = parseInt(t / 60), t = parseInt(t % 60), n > 60 && (o = parseInt(n / 60),
                    n = parseInt(n % 60))), o = o < 10 ? "0" + o : o, n = n < 10 ? "0" + n : n, t = t < 10 ? "0" + t : t,
                    Global.utils.searchComp(this.node, "leftTime", cc.Label).string = o + ":" + n + ":" + t;
            }
        })
    }